package jdbc.dao;

import java.util.List;

public class TestDao {
    public static void main(String[] args) {
        StudentDao dao = new StudentDaoImpl();
//        long x = 1181;
//        Student s = dao.get(x);
//        if (s == null) {
//            System.out.println("查无此人");
//        } else {
//            System.out.println("此人信息如下:\n" + s);
//        }
        int pageNo = 1;
        int pageSize = 10;
        String sname = "王";
        List<Student> list = dao.search(pageNo, pageSize, sname);
        for (Student s : list) {
            System.out.println(s);
        }
    }
}
